import request from '@/utils/request'

// 查询预算详情子列表
export function listBudgetDetails(query) {
  return request({
    url: '/mis/budgetDetails/list',
    method: 'get',
    params: query
  })
}
// 查询预算详情子列表
export function listBudgetDetailsAndSupplement(query) {
  return request({
    url: '/mis/budgetDetails/listBudgetDetailsAndSupplement',
    method: 'get',
    params: query
  })
}
// 查询预算详情子列表通过产品经理
export function listBudgetDetailsByProduct(query) {
  return request({
    url: '/mis/budgetDetails/listBudgetDetailsByProduct',
    method: 'get',
    params: query
  })
}
// 查询年度预算金额
export function listAnnualBudget(query) {
  return request({
    url: '/mis/budgetDetails/listAnnualBudget',
    method: 'get',
    params: query
  })
}
// 查询预算详情子列表
export function listBudgetDetailsAndSupplementByCollectedMoney(query) {
  return request({
    url: '/mis/budgetDetails/listBudgetDetailsAndSupplementByCollectedMoney',
    method: 'get',
    params: query
  })
}

// 查询预算详情子详细
export function getBudgetDetails(id) {
  return request({
    url: '/mis/budgetDetails/' + id,
    method: 'get'
  })
}

// 新增预算详情子
export function addBudgetDetails(data) {
  return request({
    url: '/mis/budgetDetails',
    method: 'post',
    data: data
  })
}

// 修改预算详情子
export function updateBudgetDetails(data) {
  return request({
    url: '/mis/budgetDetails',
    method: 'put',
    data: data
  })
}

// 删除预算详情子
export function delBudgetDetails(id) {
  return request({
    url: '/mis/budgetDetails/' + id,
    method: 'delete'
  })
}
